package com.feige.dao;

import com.feige.pojo.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 权限管理 Mapper 接口
 * </p>
 *
 * @author feige
 * @since 2020-07-20
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    ///根据用户id获取用户权限值
    Set<String> selectPermissionValueByUserId(Long id);

    //获取全部权限值
    Set<String> selectAllPermissionValue();

    List<Permission> selectPermissionByUserId(Long userId);


}
